package d0327;

import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;

public class Test1 {
    public static void main(String[] args) throws Exception {
        File file = new File("D://a.txt");
        FileReader fr = new FileReader(file);
        BufferedReader br = new BufferedReader(fr);
        String str = br.readLine();
        StringBuilder stb = new StringBuilder(str);
        while(str != null) {
            stb.append(" ");
            stb.append(str);
            str = br.readLine();
        }
        String values = stb.toString();
        System.out.println(values);
//        String[] strs = values.split(".");
//        StringBuilder stb1 = new StringBuilder();
//        for(int i = 0;i < strs.length;i++) {
//            stb1.append(strs[i]);
//        }
//        System.out.println(stb1);

    }
}